added panel, changed search functions

added topic sorting algorythm