added cancel download functionality