foundation for checkout page, code polishing