How to create custom view rendering