fix bugs in menu and editor
fix reading/writing mode
dunno