refact searchpanel
refact panel