add function to submit todo.type with select tag