update index page from layout