code clean up
tabbing
Add input pane event hooks