add color preview block and fix generating id for titles