add clear statements to window commands upon opening a new session