Moved plugin events from model to behavior.