Confirmation box pops up when back button is pressed