Main and Connect window changes. disconnect and connect