card status toggling in back-end