more html head/tail fixes