change `enteredView` to `attached`