implemented updating quiz on model side