added a loading state to the auto populate button