update invoke function in router