prod-cons pattern for standalone search,edit and upload function