abstracted connection window to separate methods

added buildConnectionWindow method
added setWindowProperties method