public function loadCSV()
    {
        $parser = new CSVParser($this->file);
        $count = 0;
        foreach ($parser as $row) {
            $this->rows[]= $row;
            $count++;
            if ($count == $this->previewcount) {
                break;
            }
        }
        $firstrow = array_keys($this->rows[0]);

        //hack to include first row as a
        array_unshift($this->rows, array_combine($firstrow, $firstrow));

        if (count($this->rows) > 0) {
            $this->headings = $firstrow;
        }
    }