updating to detect when the current file has not been saved. related to #22