update subview
- remove unnecessary code