changing cursor type to bar