added support for html5 history api