adding popup confirmation on exit and relative keyboard shortcut