fixed bugs in add card pages