improve tpnote, use thread and a JButton list