@Override
    public void updateView() {

	Model model = controller.getModel();
	Object col[] = new Object[3];

	movieHash.clear();


	int c = tModel.getRowCount();
	for (int i = c - 1; i >= 0; i--) {
	    tModel.removeRow(i);
	    movieTable.revalidate();
	}

	if (model.getMovies().getMovieList().isEmpty()) {
	    System.out.println("movie list is empty");
	    col[0] = "";
	    col[1] = "";
	    col[2] = "";
	    tModel.addRow(col);
	}

	for (Movie m : model.getMovies().getMovieList()) {
	    col[0] = m.getTitle();
	    col[1] = m.getFormat();
	    col[2] = m.getSize();
	    movieHash.put(m.getTitle(), m);
	    tModel.addRow(col);
	}

	movieTable.setModel(tModel);

	movieTable.getColumnModel().getColumn(0).setPreferredWidth(400);
	movieTable.getColumnModel().getColumn(1).setPreferredWidth(60);

    }