set background color and legend background