452.410. Custody, decree, modification of, when
1. Except as provided in subsection 2 of this section, the court shall not modify a prior custody decree unless it has jurisdiction under the provisions of section 452.745 and it finds, upon the basis of facts that have arisen since the prior decree or that were unknown to the court at the time of the prior decree, that a change has occurred in the circumstances of the child or his custodian and that the modification is necessary to serve the best interests of the child. Notwithstanding any other provision of this section or sections 452.375 and 452.400, any custody order entered by any court in this state or any other state may, subject to jurisdictional requirements, be modified to allow for joint custody or visitation only in accordance with section 452.375, 452.400, 452.402, or 452.403.2. If either parent files a motion to modify an award of joint legal custody or joint physical custody, each party shall be entitled to a change of judge as provided by supreme court rule.