latching for top navbar