added layout for connection