Connecting to data model with State