Update template and index page