Add options to disable pushstate/replacestate