fix textbox toggling