made JOptionDialog calls slightly more readable