Handle connection UI