auto toggle on insert mode