add custom 500 and 404 error page