account for opening/closing of toolbars