when the checkout form is submitted, it does an ajax call to load the confirm_cart.php and confirm pages.
It looks like you have applied your template to those pages, where it is using ajax to load those pages, they get loaded into the checkout page, you should not be applying the template to the confirm_cart or confirm pages, having the template on those pages is preventing them from loading correctly