wire up profile view and event view