Added flickr api and main page states