Added active classes to the extremes.