Treat back button events