Link between dark matter halos and galaxy formation