created an event listener structure, and completed event listener support for entities