template: function for page added