fixed pagination and loading categories in catalog;