adds events hash to views