Add download dialog and remove file function