added redirect and 404 page