reformatted restart dialog code
removed launchMode (fixed app not relaunching when switching theme)