split off addTask to a new template