added model saving when task attributes are modified