Small adjustment in getting data
Get categories from server side