Added edit fuctionality for the categories