Fix bug and optimize mobile drop down menu