add separate thread to ui