Updates the template base HTMLs and updates the corresponding pages