Changed back button implementation