refactor osx-window, use table instead of div