adding dynamic pie charts