close sidebar when switching navigation entry, except on add or change settings