on click sample view from sample tree