added support for refresh by modifying hash instead of full URL with history object