moved top level html to a new Index view class and fixed closure warnings