implemented the ToDictionary method for all models
fixed the categories service