fixed save function exceptions and add/remove card table refresh