added tms_rp_viewer class