updates events to use modules for behavior