Added Thread Safe Calls to the UI