copied styles from basicviewer.