save selected values like numHits, viewType,sorting in hidden fields