implemented overwrite read-only text file dialog