error and warning handling

error when flickr is down
warning when no search photos found
searched text needs to escape special characters
removed commented lines
view should not convert string to integer

View should not be responsible to convert string to integer
refactored controller for search

removed redundant variables, confided code