added check in show and hide to make sure toolbar in correct state