modify WindowApp.js and other related files