added events_controller and spec