try inserting this statement at start of proc : if (`window -exists crowdWin` == true) deleteUI crowdWin; BEFORE you define crowdWin in this statement: window -title "Crowd System" -widthHeight 300 200 crowdWin;