created a helper method for returning css_class and msg_icon_class