refactor coupons#show and posts#show