added backgroundcolors based on the state