Another attempt to fix on macs- this time we set the UI FIRST