Fixed class loader and added the index controller