search working but lagging by one submit

TODO - seperate and reorder getPictures and render