added redirect handler for 404 pages