Add head and body hooks to base template