Add connect/disconnect callback