added exception handling
Fetching async + popup dialog
fetchcode exception handling