dynamically setting router baseUrl