refines the tab creation in search
moves block to framework scope