Restructure search component in the header.