public void addRow(Object[] array) {
		//data[rowIndex][columnIndex] = (String) aValue;
		try{	
	    // add row to database
		EntityTransaction userTransaction = manager.getTransaction();  
		userTransaction.begin();
		Audience newViewer = audienceService.createviewer((String) array[0], (String) array[1],  (String) array[2], (String) array[3], (String) array[4]);
		userTransaction.commit();
		
		// set the current row to rowIndex
        audienceResultList.add(newViewer);
        JOptionPane.showMessageDialog(window,"SignUp Successful","Confirm SignUP",JOptionPane.PLAIN_MESSAGE );
        int row = audienceResultList.size();  
        int col = 0;

        // update the data in the model to the entries in array
         for (Object data : array) {
          	 setValueAt((String) data, row-1, col++);
         }
         
         numrows++;
         LoginGUI LGui = new LoginGUI();
    	 LGui.showGUI();
    	 
		}
		catch(Exception e){
			JOptionPane.showMessageDialog(window,"Username already exits.Try a different Username","UserName Invalid",JOptionPane.PLAIN_MESSAGE );
			
			//SignUpGUI gui1 = new SignUpGUI();
			//gui1.showGUI();
		}
		
	}