Added input listeners to the menus