convert add model dialog to .ui

Change-Id: I20d10d0e9c311bcfb1386d481ae4832f463b931a