Fixed 404 errors on index and made index functional