refactor

* remove unrelated code
* move InputAdapter in to utils