added viewer handler