fix smoketest, fix template, fix ui