updated main.js checkout view