Created the events controller