update the recent files menu
merged both loading functions