ticket:5 these few lines were moved to form's save method