added the event for opening new html after history button clicked