Add hooks for gff renderer.
Fix stupid case clause bug!