Added confirmation for leaving Attendance page when there are unsaved changes