fixed the checkout button and added the checkout count feature