Refactored app to remove the need for redundant index.html files