- put sync of spreadsheet into its own function
- add in handling code for sync dialog
- handle "sync spreadsheet" by calling the function

Change-Id: I94a1a7b0b93ee53702b6d1330b7a0400230b272b