Toggle debug button - not quite working
Added call to end UI onExit