added click function for decks on 'flashcards' index page