converted erb events views into haml