Tweaked for OS X, window now resizable