move searchform code from mobile.html