remove replacestate
modify view.run to view.define
merge master