show selected text when clicking on dropdowns