checking item id in download link function