Added ability to disable pushstate