Adds multi-text viewer code