Change cursor hide method