Remove depencency on time library from UI.py
Rename callback wrappers to "enqueue_callback" to make it more clear.