Upon the hearing of the application, affidavits, and such other proof as the court or judge permits, may be introduced, and upon the whole case such order made as will be for the best interest of all parties concerned.