generic UI for both coupon and registration codes and updated the ORM models