Custody of children is determined by the best interest of child derived from several factors, such as mental and physical health of parties, moral fitness, home, school and community environment, permanence as a family unit, length of time child has lived in a stable, adequate environment, etc.