Added somewhat dirty hack to prevent redrawing UI from a view that is no longer opened