Show uncommitted criteria on UI.

Previous commit broke the UI by not returning the (uncommitted)
criteria. This implements a quick hack to get the criteria back.