remove unused code
remove unused js files
refactor app controller to a cleaner style