Added feature for adding and editing categories