Add close all files, save all files and auto-save functionality