implemented back-navigation without back button