Added a segue from the tableview to another view controller. Corrected the way Http requests were being made