fixes in aplication.js