added viewer and gallery
minor changes