Update Gui.java

added confirme dialog boxs