added touch events to navigate back from a detail view