implemented all the connection signal callbacks