set state variable + all levels in ui

sampleDataDict[@"data"] is state variable for detail view/new sample
view