Refactored CSS Success and Error messages

Extracted the `updateCSS` and `updateError` methods