modified category from int to str and fix save-delete functions