make modal-state-atom more local

Status Job ID Name Coverage
  Build
passed #124166
build

00:01:07

 
  Test
passed #124167
test1

00:01:17