refactored code- added buttons to change header, list,text, & paragraphs