adds header search functionality