search: keep collection parameters for each tab

* local storage and JSON to keep the tab state
* add dynamically value to input
* refactored code

Signed-off-by: Georgios Kokosioulis <georgios.kokosioulis@cern.ch>