edit coupon and sort coupons