update text for leaving page