refactor create counpon view