Joint or sole custody may be awarded based on the best interests of the child and other factors that include 1) the preference of the child, 2) the desire and ability of each parent to allow an open and loving relationship between the child and the other parent, 3) the child's health, safety and welfare, the nature and contact with both parents and 4) the history of alcohol and drug use.