Added controller to index.html