implemented navigation through screens with back button