Added logic to hide and show the menu.