update index and show page