added mixpanel hooks