add connection, and fix sub menu