refactor: extract constants
refactor, minor UI tweaks
implement sending different button codes
remove redundant input type codes
display button states ;basic input stateUI finalized
fix initial window size