Main template and index updates