Added back-stack functionality to FragmentManager