didRecieveData()

delegate method to handle the functionality when the data is received