change toolbar logic such that menu/palette styles can be switched interactively