create task from template