added paragraphs and contents controller