switch back to normal mode from insert mode when page starts loading