Added interface
Refactored setEvents method and add support for own template