Made some minor changes, added logging to CategoriesPage