add pagination and load categories