pop fragment stack if not empty on back press on main activity.