added edit category function