improvements in error pages
further improvements in 500 error page