Added support for the fragment cache and menu selection by fragment cache