added document controller