added viewer direcly in upload tool