updates for conversion between newlines and br tags