enabling swipe back for navigation