history events

listen to hashchange event and control back and forward of history.