converted addevent partial to haml