refact events