event manager using the sunlight api(using old api might not work anymore)