saving search values as globals