NEW: last search mode is saved and applied when page is reloaded