small refactor in events controller