remove cursor when configElement is enabled==False