convert add condition dialog to .ui

Change-Id: I0cc014909cf49d7cbfadcb5d5d8730395d558eda