code clean up adn added key bindings to the proxy