Makes sure the toolbar is visible before clicking a button.