put all the UI stuff into interact() so that updateDialog() will work.