set base to main template and update legal link