improve connection helper, add logout test
change click action to return key send