created custom view for blocks