correctly show/hide controllers if they are active/inactive