Update variables for search buttons