Update onEvent method name