add basic controller to main.js
add basic controller to index