fixed error styling and management