If a motion for grandparent visitation is filed in a pending action for divorce, custody, legal separation, annulment or establishment of paternity pursuant to section 21-401, the grandparent shall be granted visitation if a preponderance of the evidence shows that visitation is in the best interest of the child and that:
W. Va. Code § 48-10-701