moved atgs api handling to CategoriesController