add connected callback wiring