move getSearchQuery from the card layout to base.