modify view.run to view.define