Fix #111. Create confirmed dialog before setting remote description.

Thanks to @wakamoleguy and @gavllew