this should not happen in the controller but in an after_save hook in the model