Implemented updateCard functionality