fixed assignment 5 missing solution for handling when ThreadPool button clicked