update spec and controller of category