refactored to service, thread list, added click to hide form