refactor. added support renderTo and getView