Added an exit confirmation dialog to UpdateActivity