Redo: add confirmation dialog when reload or exit page