fixed Main template