Added functionality to year slider