added controllers
added views of controllers
minor fixin main.js