Change the background color of a template