add category adding logic