Introduce @active field to NoteEditScene.
This field becomes true when the scene is shown.
The reason to introduce this field is to prevent from crashing.