update document controller