hashchange event
fixed some minor issues