Updated contacts refresh logic