Added page leave confirmation.