convert category add input to web sockets. also solved collection issue in schema.