Replace button in tool bar is now only enabled if a match is selected in the editor.  General cleanup.