needs rework

conversion so that multiple windows of the same program can be made