added edit category functionality