public void updateDishes(Set<Dish> modelDishes, int type) {
//add all the dishes to the tabpanels from the model
		if (type == 1) {

			starter.scrollPanel.removeAll();
		} else if (type == 2) {

			main.scrollPanel.removeAll();
		} else if (type == 3) {

			desert.scrollPanel.removeAll();
		}

		for (Dish dish : modelDishes) {
			ImageIcon ic = null;
			try {
				ic = new ImageIcon(ImageIO.read(
						new File("images/" + dish.getImage()))
						.getScaledInstance(100, 100, 0));
			} catch (IOException e) {
				e.printStackTrace();
			}
			JLabel tempDish = new JLabel(dish.getName(), ic, JLabel.CENTER);
			tempDish.setName(dish.getName());
			tempDish.setVerticalTextPosition(JLabel.BOTTOM);
			tempDish.setHorizontalTextPosition(JLabel.CENTER);
			switch (dish.getType()) {
			case 1:
				starter.scrollPanel.add(tempDish);

				starter.updateUI();
				break;
			case 2:
				main.scrollPanel.add(tempDish);
				main.updateUI();
				break;
			case 3:
				desert.scrollPanel.add(tempDish);
				desert.updateUI();
			}
		}

	}