add connect on press enter