swap the order of documents and media

+ ilm edits