fix bug about various interactions on UI.