function params fixed
page template added