deleted fragments and added HttpConnection class