switch between fragments and override onBackPress() method