Fixed "bug" where Replace buttons not enabled...

when Find buttons clicked. This is actually not a bug. These buttons
should not be enabled when an optimization file is selected, so the
commented out lines need to be replaced with the appropriate code for a
DynamicTree.