better rendering for error component