Using ViewDeck to switch the view