updates to main, index, and layout