document controller usage