check sync code availability every time the settings view loads