Fixes for textbox class

Added cap to input, fixed double entering, added buttons for exit and
connect