Update class variables so the textfields needed for connecting can be accessed within the action listener.