[mac] fix ui bugs
Merge pull request #198 from haiwen/maintain_patch_3

[mac] fix ui bugs