change scoping on setRouter method