add todo events and plugins