Update scroll and sale in activate view.

Fixes #939
removed unused javascript. Fixes #998
Merge pull request #1012 from ostcar/issue_998

removed unused javascript. Fixes #998
Merge pull request #1005 from ostcar/activate_view

Update scroll and sale in activate view.