fixed issue #5, where file loading didn't work most of the time -- changed the way the view sends file information to the model for loading