added error styles to generator