added clickhandler for checkoutBtn in index.js