working of quiz and edit quiz