update exception handling add more exception handler and now use thread-safe method to modify controls