When upload finishes successfully, refresh view and dismiss modal