change buttons in templates