changed customfieldobject to update state when properties are changed