Also close sidebar when clicking on "View".