action triggered when select component is clicked. Here you should change expanded state to true if you want to display the options