optimize images and 404 page