add txtToggle functionality