changed dropdown menu so that it hides when clicked