took out the look to see if it is the active window in the quit function, now using the handle to the window
Added setting of the title in the save function