Fixed displayTitle property and cleaned up code.