sample document controller