fixed amounts shown as NaN
refactored structure in main.js
renamed a function
fixed button width in mobile view