added history view, modified text height calculator