create back button function.