update master template