working for the edit category page