almost there, still need to clean up modals when re-used, and figure out how to handle html files with remote files