MOD: use main button to switch between commit and edit mode.