both dropdown interactions in ui class