adds logic for show/hide cardstack navigation