fixing bug when saving search changing button text  -refs #7229