[maintain] do some cleanup
Merge pull request #196 from haiwen/maintain_patch_1

[maintain] do some cleanup
[mac] fix ui bugs
Merge pull request #198 from haiwen/maintain_patch_3

[mac] fix ui bugs
add more details to on-ssl-errors messagebox
fixed coding styles