Added functionality to retain the user entered search criteria.