update directive template