added change to cursor when in insert mode