logging added for failed scenarios
loggin added
Cancel option feature implemented, and offline data sync feature improved