Add recent files list, update ui, minor refactoring