disable toolbar/menubar/scrollbar first so they don't flash