Fixed the issue of color change upon selection of a different time slot after page load.