removed unneeded variables from connectActivity