Made adjustments to allow callback to main menu from all submenu items