update ui in mac osx