Added the possibility to edit categories.