Close child views automagically

:+1: to deleting the second line