updated linked in refresh logic