Added detector code to 404 page