refactored views and package.json