Base MyConfig on the type of item (Procedure, Section or Step) Keep the code from crashing iff the user selects a result in the search window that points to non-editable text