fixed msgbox that pops up when project is modified and window is exited