changing show/hide logic to depend on presence of topbar menu