Fix index page bugs. Closes #17