add error checking for saving and now using css classes for changing colots