fixed #3 UI initialization