add Cancel when connecting