Modified the "Edit" menu and "Layers" menu as action modes, which more
user-friendly.