check for tool-bar-mode before call