added category in index, so we can pass a category filter into resource_path, easy to connect to the topics model.