added pages bassed of template