colors switching back and forth based on views