- Simplified the code
- Added a tap recognizer to close the menu when the ViewController is tapped