navdeck interaction, using switchjs