refactor: onEnter, initView