add some comments on UI programming