add option to load last opened file automatically