eventcontroller simplify and test