added some conditionals to appearance of duplicate flag, removed before_update hash answers (already called from controller)