added switching colors in modal palette