update Document model and uploade_page