adding router for better back button handling