Moved thread pool to environement variable, instead of creating in the controller show action.
Changes for moving thread pool to environement variable instead of in controller show action.