Replace get_search with get_criteria.
Redo dictionary
Fix another error
Remove change_mode

change_mode only applicable for photos.
Fix broken code

Code was borken but not executed until after
1741a94e60a25d5a300a14f1833def334076e3aa
Fix more broken code
General improvements.
Don't open more then one dialog
Fix errors displaying delete dialog
More no-open-more-then-one dialog checks.