added mode to the model observer and made deletes observable