For OS X dynamically generate the UI.