save document before creating student file