added select functionality to web viewer