better error handling for front page