OnClick handlers and table name input