Added options on page.leave