move event model code out from events controller and change schedule logic
refactor code
make tests green