add custom class to fields