Refresh the main activity after upload