Things like refreshing the library cache are slow and lock up the UI thread. I think a popup window that runs a task will solve this problem nicely