Make the thread toggle buttons work