add changeConnectionStatus method