Added functionality to the menus