events for mode switching, calculation of min/max vals for coordsys