Implementing search panel in diagram. More refactoring on terms versions is needed.