added button functionality to confirmation page