When updating the view check to see if the sidebar contains any visible children elements. If not, hide it.