Modifying the main menu to accept commands