back button resets input page

added reset function to back button onclick