passing parent view into the custom view