typeahead now executes form submit function on select
merged changes for undo/redo