implement front end for templates and parent pages