updates to add more gui elements with JOptionPane