add event dispatcher to DynamicRouter
adding some testing and adjust to parameter order change