adds command to toggle bar for when it gets in the wrong state