refactored index
more refactoring... may switch to bootstrap