move constants to constants.js
add card dialog