added if-elseif statements for color messages