adding the menu close function to the controller - tests still breaking for the UserService though, balls