option to save all files before refresh