[refactor] start to write toggle fucntion for display input