add footer and set index page