Moved code for hiding editors to individual selection change listeners