add a simple factory class to construct Dispatch object.
setup view values based on the current method.