Made code java 6 friendly. Solved confirmation page bug.