task: add separate methods to add enter/leave callback