fix bugs to activate dropdown menu