add some hooks into the default theme

We probably need to document these somewhere...