if theres still data in background do not go back to main activity on cancel/error
dismiss progress dialog on error