add offline api for save edit transaction
fix remove offline api
add sync client-server