refactored to use update_attributes in #toggle_completion