Modified regButtonTemplate