Added counter back button functionality