extracted view.js
aesthetics