added buttons to edit page and flashcard page