added a checkbox so that the user can choose to download upon save