update stages template