Wrote custom view controller