set basic events to correctly attach and detach mixin behavior