fixed issue 3682, 3747. add download button on metadata view.