update index page, define some structs