Add css classes and warning message.