fix card deletion and support new route