updated gui to obey swings' concurrency demands

A fix for both bug 4 and 5