add comments to controller and index.html