add a 'onSetContent' callback for behavors