Automatically sync when app is opened