Change cursor dynamically, depending on the context