Fix: Write to correct window if user changes during loading state (#167)
This MR fixes issue #165 where you could accidentally load the discussions tree into the wrong window if you switched while the content was still loading. This is a PATCH release.