fixing the flickr controller and pages to talk to the API