Adding a spinner to show the active thread