fix search box from 404 error page and initial support for angular 404s