custom recipes for nav and popup-switch