convert query delete dialog to .ui

Change-Id: I0ab09c2c54bba4a287ef0f7cc812596958373e15