update percent mastered when adding/editing/deleting cards