W geometry and isomonodromic deformations