Added a method to get non-hidden categories from a page