switch between Text widget and math widget