Creating a custom view renderer