add ConnectionHandler Function