ui: hide dropdown when activating route