refactoring for render() in View_Dbdocs_Base