public KitchenView() {
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		
		JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
		
		JPanel OrdersTab = new JPanel();
		tabbedPane.addTab("Orders", null, OrdersTab, null);
		OrdersTab.setLayout(new BorderLayout(0, 0));
		
		
		
		//create initial table
		try {
			table = getOrders();
		} catch (Exception e2) {
			JOptionPane.showMessageDialog(frame, e2.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
			return;
		}
		
		OrdersTab.add(new JScrollPane(table));
		
		JButton btnExit = new JButton("Exit");
		btnExit.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				LoginWindow Login = new LoginWindow();
				Login.setVisible(true);
				Login.setExtendedState(JFrame.MAXIMIZED_BOTH);
				dispose();
			}
		});
		btnExit.setFont(new Font("Dialog", Font.PLAIN, 16));
		GroupLayout gl_contentPane = new GroupLayout(contentPane);
		gl_contentPane.setHorizontalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 424, Short.MAX_VALUE)
				.addGroup(Alignment.TRAILING, gl_contentPane.createSequentialGroup()
					.addContainerGap(325, Short.MAX_VALUE)
					.addComponent(btnExit)
					.addContainerGap())
		);
		gl_contentPane.setVerticalGroup(
			gl_contentPane.createParallelGroup(Alignment.LEADING)
				.addGroup(gl_contentPane.createSequentialGroup()
					.addComponent(tabbedPane, GroupLayout.DEFAULT_SIZE, 232, Short.MAX_VALUE)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(btnExit))
		);
		contentPane.setLayout(gl_contentPane);
		
		//create and start timer to re-create table every 5 secs
		int delay = 5000;
		ActionListener task = new ActionListener() {
		      public void actionPerformed(ActionEvent evt) {
		    	  try {
					JTable newTable = getOrders();
					table.setModel(newTable.getModel());
					table.setColumnModel(newTable.getColumnModel());
					ButtonColumn buttonColumn = new ButtonColumn(table, delete, 2);
				} catch (Exception e) {
					JOptionPane.showMessageDialog(frame, e.getMessage(), "Error", JOptionPane.ERROR_MESSAGE);
					return;
				}
		      }
		  };
		Timer timer = new Timer(delay, task);
		timer.setRepeats(true);
		timer.start();
		
		
	}