Implemented confirm dialog helper and handlers for discard button and quit menu item