add connect and selected work