How to add phases and tasks to a workflow template