update works if you add checkbox, but not if you uncheck the box