add document controller