Bug fixed #198:Select visit type, it deletes all other inputs and fixed #167 please check