refresh card functionality working