Added click handler to change the color of the next free slot on the timeline