solved (kind of) the problem of un-saved, new documents!