Add dynamic titles with layout