Changed the implementation of the selected date color change