fixed anither issue. and added 500 error page