set file name and do some initial view stuff for the imports