adding loading image + figuring out how to order the file flow