modified view and application.js files for better view