return to page 1 when a document is created

note: this assumes that documents are sorted by date of creation;
todo: get the page of the document based on sorting options
todo: sorting options