register -> registerElement
enteredViewCallback ->  attachedCallback
leftViewCallback -> detachedCallback