UI alert boxes are created on the main thread

Make dispatch call to create ui boxes on the main thread so the delay
of creating the box is alleviated.