restore window configuration after running mr commands