updated layout template and index page