The attorney in an action or special proceeding may be changed at any time before or after judgment or final determination, as follows:
1.Upon the consent of both client and attorney, filed with the clerk, or entered upon the minutes;
2.Upon the order of the court, upon the application of either client or attorney, after notice from one to the other.