bug fix on http requests happening on UIThread