improved css and error reporting