merging default and index templates