added reset palette feature