add button Switch
add  //TODO: format char
refact file