extracted window functionality from the userinterface file to the windows file, this is in anticipation for saving and loading window locations, among other things.