Call user defined callback when a menu item is selected.