added cursor changing for insert mode