routing reads urls correctly