Updated connection:didreceiveData fuction to utilize singelton