makes category titles and headers dynamic