Change the structure to backbone (MVC) for menu display and handling