moved scroll logic to window view  from app.js
starting, scrolling logic