debugging in progress
fixing bugs in threads and buttons