refactor into dijit helper object rather than single function call