connection established and gui initialized