Added progress bar, thread management features to the main gui form