Custom listener for task assignment