Made the scrollbar work in categoryclasses