add connected event

add connected event