Make "connect" menu item work.