added 'category' to class Coupon. adding a coupon with a category and updating a coupon works. coupon catgory gets selected automatically when updating.