added code to make sure the menubar doesn't draw over itself