updating index html to use controllers