fixed issue in which viewer might not be drawn after collapsing from expanded view