Added ability to listen to events on plugins which are controller classes.