pop view controller after photo has been uploaded successfully