Added some text formatting functionality

Convert newline to paragraphs
Added editor, item rendering and callback mechanism in UI