use router instead of url