fix #14: add label swith according to input value