add basics for getdocument to dogcontroller