all steps for loading a file are only done, when a file is actually chosen