add dirty check for leaving dashboard page if unsaved