Implemented the menu framework