add API to set bg_color