added an example of dispatching using URL or name