added success call

calls success after finishing the http request call