Page title logic

Don't create page title elements if there's nothing to put in them.
Fix title overrides