add base and fragment to html primary html template