Fix several bugs with the interface engine to get the textbox widget in to a workeable state.