change cursor shape in different modes