added toggle to searchPanel and tablePanel