Added function to force close the menu after clicking a menu link