added some TclError catching in the updateDisplay function