fixed the display of active tasks - now also works after switching tabs