add creation of message when a new task is created or when the state of a task change