added conn_handler for notifications when a connection is changed