changed function name of toggleTextBox to be more relevant