Fixed widget initialization prodecure with new events.