refactoring and adding content / title keys to config