search functionality was broken after refactoring the header. now corrected