wrote a custom view controller