Handle connection button