correctly use the ui file