Refactor connect tab and recent connections to work with the updated connection method