Now saves categories to the xml file, model does the work.