convert index layout to be index page