Page should go to main page when back is pressed