add location and route params and active page