Forced UI to main thread

- Forced UI to main thread
- Added debugging traces

Signed-off-by: Darren Ehlers <me@darrenehlers.com>