setup layout
add index