adds go back button
Adds buttons to go back to previous page on fail pages.