Added method to add entity event listeners