Fixed minor warnings
Introduced support for component events.