starts refactoring events controller