added back buttons on choose history pages
added functionality to history pages