carry out app-state in separate var + add focus when mounted