fixed the hiding of unused buttons from search panel