fix backbutton and download process