code for selecting a button on a previous row
continued work on expression selection dialog
added a button to test ExpressionSelectionDialog

The button is on the main window's create panel. The button is for
testing only; the eventual intention is for the
ExpressionSelectionDialog to be used by other buttons which do things
with the selected expression.
This commit also has bugfixes inspired by testing with this button.