Implemented editmode in category table