put checks in place for nextCard and previousCard