Make isDirty a computed property