Modified DocumentController