trim page template and change color table