modularize header and add mobile search