add location handling
sync temp data with backend