removed the dependency for an id variable in the embedded view, moved the window.files creation into the populate() function