need to fix frozen gui when performing a task