update function back button