making the index page work