Foundation works; made some changes to index layout