avoid deprecated API (item.getID)
fix infoWindow
fix infoWindow 2
revision of renameAttachment function