added view declarations
prevent default browser context menu
moved some code to app.js
check last week sales, if no exception