Added more functionality to dropdown menus