How to display dropdown options conditionally?