add card deps and refresh UI
solve a bug