added a function to edit the quiz