functions added to allow info to be set to controller from connectionwindow, actionlistener set for connectionwindow confirm button