update directive templates