add connect && disconnect cb