added isDirty flag and file name in window title