creating a method to insert custom view controller