changed the go back button so that it will correctly go back