added goBack function