Added macro for writing error css