Magnetism and metal-insulator transition in III-V based diluted magnetic semiconductors