Symmetry energy dependence of the pygmy and giant dipole resonances in an isospin dependent quantum molecular dynamics model