added events dispatcher example