minor change in mainpanel

made search function work