add switch to toggle download