Fixed error with go back button functional