fixing display errors with thread formatting buttons