Change cursor type when going between different modes