this is the select and deselect code the ttx app