delete unusable functions from page tpl