move UploadChoiceDialog into a seperate class